package com.jjty.dataGenerator.jshjy.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("js_location_data")
@JsonPropertyOrder({"channel", "imeiNo", "locationTime", "position"})
public class JsLocationData implements Serializable {
    @JsonIgnore
    @TableId(type = IdType.AUTO)
    private Long id;                // 自增主键
    private String imeiNo;          // imei号
    private String channel;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String locationTime;    // 定位时间
    private String position;
    @JsonIgnore// 方位坐标（格式：31.2304,121.4737）
    private Integer pushStatus; // 推送状态：0-未推送 1-已推送 2-推送失败
    @JsonIgnore
    private LocalDateTime pushTime; // 推送时间
    @JsonIgnore
    private String pushMsg; // 推送结果描述
}